#!/usr/bin/env python
from str_ananalyzer import StrAnalyzer
from dict.drugs_dict import drugs

__author__ = 'gogo'

__version__ = '0.0.1'

# print drugs

sa = StrAnalyzer()

print """\
#!/usr/bin/env python

__author__ = 'gogo'

__version__ = '0.0.1'

drug_bda_index = {\
"""

cnt = 0

for drug in drugs:
    if len(sa.get_bda_link(drug)) > 0:
        cnt += 1
        print ' '*4 + "'" + drug + "': " + str(sa.get_bda_link(drug))+','

print "}"

